projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe41ae9
)
(EmacsMenu-addItemWithWidgetValue:): Don't add accelerator in parens under GNUstep.
author
Adrian Robert
<Adrian.B.Robert@gmail.com>
Fri, 6 Mar 2009 19:06:45 +0000
(19:06 +0000)
committer
Adrian Robert
<Adrian.B.Robert@gmail.com>
Fri, 6 Mar 2009 19:06:45 +0000
(19:06 +0000)
src/nsmenu.m
patch
|
blob
|
history
diff --git
a/src/nsmenu.m
b/src/nsmenu.m
index 636b71cf308e8969b4bd236c75b3a7beebec561c..9a97492e7513c014adb24f195035dd4488865b6e 100644
(file)
--- a/
src/nsmenu.m
+++ b/
src/nsmenu.m
@@
-636,8
+636,11
@@
name_is_separator (name)
title = @"< ? >"; /* (get out in the open so we know about it) */
keyEq = [self parseKeyEquiv: wv->key];
+#ifdef NS_IMPL_COCOA
+ /* OS X just ignores modifier strings longer than one character */
if (keyEquivModMask == 0)
title = [title stringByAppendingFormat: @" (%@)", keyEq];
+#endif
item = [self addItemWithTitle: (NSString *)title
action: @selector (menuDown:)